package com.gilight.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gilight.base.dto.DictModel;
import com.gilight.base.dto.SysDictDto;
import com.gilight.base.model.SysDict;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @Author zhangweijian
 * @since 2018-12-28
 */
public interface ISysDictService extends IService<SysDict> {
    public List<DictModel> queryDictItemsByCode(String code);

    List<DictModel> queryTableDictItemsByCode(String table, String text, String code);

    public List<DictModel> queryTableDictItemsByCodeAndFilter(String table, String text, String code, String filterSql);

    public List<DictModel> queryAllDepartBackDictModel();

    List<Map<String, Object>> selectByBzdm(String bzdm);

    /**
     * 根据条件查询字典表
     *
     * @param sysDictDto
     * @return
     * @Author: wuzz
     */
    PageInfo<SysDict> queryPageList(SysDictDto sysDictDto);
}
